<?php if($korpa):?>
<h1>Korpa</h1>

<table id="rounded-corner" style="width:700px">
  <thead>
    <tr>
      
        <th class="rounded-company">Naziv</th>
      <th>Kolicina</th>
      <th class="rounded-qend">Ukloni</th>
    </tr>
  </thead>
  <tfoot>
    	<tr>
        	<td colspan="" class="rounded-foot-left">&nbsp;</td>
                <td colspan="1" ><em>&nbsp</em></td>                    
        	<td class="rounded-foot-right"> &nbsp</td>
        </tr>
    </tfoot>
  <tbody>
      
    <?php foreach ($korpa as $id=>$kolicina): ?>
    <tr>
      <?php $proizvod=ProizvodPeer::retrieveByPK($id); ?>
        <td><a href="<?php echo url_for('proizvod/details?id='.$id) ?>"><?php echo $proizvod->getNaziv(); ?></a></td>
        <td><?php echo $kolicina;?> </td>
        <td><?php echo link_to1('ukloni', 'korpa/ukloni?id='.$id)?> </td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
<div class="elementFilter">
<form action="<?php echo url_for('korpa/naruci')?>">
           <?php echo $form?>
    <input type="submit" value="Potvrdi kupovinu">
</form>
</div>

<?php else:?> <h2>Nema proizvoda u korpi</h2>
<?php endif; ?>
 
